package com.longfor.dragonshard.dto.log;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.longfor.dragonshard.common.util.DTOUtils;
import com.longfor.drogon.common.dto.BaseListDTO;

import java.util.Date;

/**
 * @author wangyong
 * @version v1.0
 * @create 2018-01-26 14:27
 **/
public class LogSearchListDTO extends BaseListDTO {
    private static final long serialVersionUID = -1L;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date start;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date end;
    private String type;
    private String module;
    private String username;

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return DTOUtils.toString(this);
    }
}
